package example.pattern.prototype;

public abstract class Prototype implements Cloneable {
	private int x;
	private int y;
	
	
	public Prototype(int x, int y) {
		super();
		this.x = x;
		this.y = y;
	}


	@Override
	public Prototype clone() throws CloneNotSupportedException{
		Prototype clone = (Prototype)super.clone();
		return clone;
	}


	public int getX() {
		return x;
	}


	public void setX(int x) {
		this.x = x;
	}


	public int getY() {
		return y;
	}


	public void setY(int y) {
		this.y = y;
	}


	public String content() {
		return "[x=" + x + ", y=" + y + "]";
	}
	
	
	
}
